home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / utils / ab2ascii-1.3 / Makefile < prev    next >
Makefile  |  1996-09-11  |  2KB  |  59 lines

  1. #
  2. # Makefile for the AmigaBASIC -> ASCII converter
  3. #
  4. # (c)Copyright 1994 by Tobias Ferber.
  5. #
  6. # This file is part of AmigaBASIC->ASCII.
  7. #
  8. # AmigaBASIC->ASCII is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 1 of the
  11. # License, or (at your option) any later version.
  12. #
  13. # AmigaBASIC->ASCII is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with AmigaBASIC->ASCII; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22.  
  23. rm= rm
  24. CC= gccv
  25. CFLAGS= -O2 -Wall -L/usr/os-lib -DDEBUG
  26.  
  27. .PHONY: all clean
  28.  
  29. all: ab2ascii
  30.  
  31. ab2ascii: main.o args.o flist.o symbols.o codelines.o expand.o tokens.o
  32.     $(CC) $(CFLAGS) -lm -o $@ $^
  33.  
  34. main.o: main.c abasic.h ab2ascii.c
  35.     $(CC) $(CFLAGS) -c -o $@ main.c
  36.  
  37. args.o: args.c
  38.     $(CC) $(CFLAGS) -c -o $@ $<
  39.  
  40. flist.o: flist.c
  41.     $(CC) $(CFLAGS) -c -o $@ $<
  42.  
  43. symbols.o: symbols.c abasic.h
  44.     $(CC) $(CFLAGS) -c -o $@ symbols.c
  45.  
  46. codelines.o: codelines.c abasic.h
  47.     $(CC) $(CFLAGS) -c -o $@ codelines.c
  48.  
  49. expand.o: expand.c abasic.h
  50.     $(CC) $(CFLAGS) -c -o $@ expand.c
  51.  
  52. tokens.o: tokens.c
  53.     $(CC) $(CFLAGS) -c -o $@ tokens.c
  54.  
  55. # --- clean
  56.  
  57. clean:
  58.     $(rm) ab2asci main.o args.o flist.o symbols.o codelines.o tokens.o
  59.